<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系统- 景区管理</title>
<link href="<%=basePath%>/css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=basePath%>/js/main.js"></script>
<script type="text/javascript" src="<%=basePath%>/js/datepicker/WdatePicker.js"></script>
</head>
<body>
<div style="padding: 2px;">
	<c:set var="actionUrl" value="${pageContext.request.contextPath}/saveSight.do"/>
	<c:if test="${not empty sightBean.sightId}">
		<c:set var="actionUrl" value="${pageContext.request.contextPath}/updateSight.do"/>
	</c:if>
	<form id="sightEditForm"  name="sightEditForm" action="${actionUrl}" method="post" target="consoleFrame" >
	<table width="500" border="1" cellpadding="1" cellspacing="0" bordercolor="#eeeeee">
		<input name="sightForm.sightId" type="hidden" value="${sightBean.sightId}"/>
		<tr>
			<td height=25>景区名称：</td>
			<td><input name="sightForm.sightName" type="text" class="input1"
				id="sightForm.sightName" value="${sightBean.sightName}" size="30" verify="NotNull"/></td>
		</tr>
		<tr>
			<td height=25>景区地址：</td>
			<td>
				<input name="sightForm.province" type="text" class="input1"
				id="sightForm.province" value="${sightBean.province}" size="10" verify="NotNull"/>省
				<input name="sightForm.city" type="text" class="input1"
				id="sightForm.city" value="${sightBean.city}" size="10" verify="NotNull"/>市
				<input name="sightForm.address" type="text" class="input1"
				id="sightForm.address" value="${sightBean.address}" size="30" verify="NotNull"/>								
			</td>
		</tr>
		<tr>
			<td height=25>联系人：</td>
			<td><input name="sightForm.contact" type="text" class="input1"
				id="sightForm.contact" value="${sightBean.contact}" size="30" verify="NotNull"/></td>
		</tr>
		<tr>
			<td height=25>电话：</td>
			<td><input name="sightForm.phone" type="text" class="input1"
				id="sightForm.phone" value="${sightBean.phone}" size="30" verify="NotNull"/></td>
		</tr>
		<tr align="center">
			<td colspan="2">
			 <input type="submit" value="保存"/>
			 <input type='button' onclick="parent.closeWin();" value="取消"/>
			</td>
		</tr>
	</table>

	</form>
	</div>
	</body>
</html>
